package com.ssy.lingxi.member.merchant.model.vo.comment.request;

import com.ssy.lingxi.member.merchant.api.model.vo.inner.request.MemberTradeCommentSubmitDetailVO;

import javax.validation.Valid;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.List;

/**
 * 订单评价接口参数VO
 * @author yzc
 * @version 2.0.0
 * @date 2020/10/14
 */
public class MemberTradeCommentSubmitVO implements Serializable {
    private static final long serialVersionUID = 1577411288889524742L;

    /**
     * 订单id
     */
    @NotNull(message = "订单id不能为空")
    private Long orderId;

    /**
     * 发表评价集合
     */
    @NotEmpty(message = "发表评价集合不能为空")
    @Valid
    private List<MemberTradeCommentSubmitDetailVO> commentSubmitDetailList;

    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public List<MemberTradeCommentSubmitDetailVO> getCommentSubmitDetailList() {
        return commentSubmitDetailList;
    }

    public void setCommentSubmitDetailList(List<MemberTradeCommentSubmitDetailVO> commentSubmitDetailList) {
        this.commentSubmitDetailList = commentSubmitDetailList;
    }
}
